package cn.getech.data.development.service.impl;

import cn.getech.data.development.entity.BdpDataAssetsAlgorithmModelRules;
import cn.getech.data.development.mapper.BdpDataAssetsAlgorithmModelRulesMapper;
import cn.getech.data.development.service.IDataAssetsAlgorithmModelRulesService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 数据资产模型算法规则表 服务实现类
 * </p>
 *
 * @author zzm
 * @since 2021-01-19
 */
@Service
public class BdpDataAssetsAlgorithmModelRulesServiceImpl extends ServiceImpl<BdpDataAssetsAlgorithmModelRulesMapper, BdpDataAssetsAlgorithmModelRules> implements IDataAssetsAlgorithmModelRulesService {

    @Override
    public List<BdpDataAssetsAlgorithmModelRules> listAlgorithmType(String model_type_id) {
        List<BdpDataAssetsAlgorithmModelRules> dataAssetsAlgorithmModelRulesList = this.baseMapper.selectList(new QueryWrapper<BdpDataAssetsAlgorithmModelRules>().select("id as algorithmTypeId","algorithm_type_name").eq("model_type_name",model_type_id));
        return dataAssetsAlgorithmModelRulesList;
    }
}
